package com.devilvan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.devilvan.entity.Dept;
import com.devilvan.mapper.DeptMapper8003;
import com.devilvan.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2020-11-10
 */
@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper8003, Dept> implements DeptService {
    @Autowired
    DeptMapper8003 deptMapper;

    @Override
    public boolean addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }

    @Override
    public Dept queryDeptById(Long dept_id) {
        return deptMapper.queryDeptById(dept_id);
    }

    @Override
    public List<Dept> queryAllDepts() {
        return deptMapper.queryAllDepts();
    }
}
